package com.eduction.service;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

import com.eduction.common.dbutil.page.Page;
import com.eduction.modules.system.entity.SchoolContacts;

public interface SchoolContactService {

	/**
	 * 保存学校联系人
	 */
	public void saveSchoolContact(SchoolContacts sc);
	
	/**
	 * 查询学校联系人
	 * @throws SQLException 
	 */
	public List<SchoolContacts> querySchoolContacts(String type) throws SQLException;
	
	/**
	 * 删除联系人
	 */
	public void deleteSchoolContact(String pid);
	
	/**
	 * 查询联系人
	 */
	public SchoolContacts querySchoolContactsByPid(String pid) throws SQLException;
	
	/**
	 * 分页查询
	 * @throws SQLException 
	 * @throws NumberFormatException 
	 */
	public Page<SchoolContacts> querySchoolContactsByPage(Map<String ,String> map) throws SQLException;

	List<SchoolContacts> querySchoolContactsBySchoolIdAndType(String schoolId, String type) throws SQLException;

    List<SchoolContacts> queryAll(String contentName, String schoolName) throws SQLException ;
}
